<?php

use think\facade\Route;

Route::group('live', function () {

    /* CC云直播 - 大班课 */
    Route::group('cczb', function () {
        Route::group('room', function () {
            Route::post('create', '@createZBRoom');    /* 房间创建*/
        });
    });
    /* CC云课堂 - 小班课 */
    Route::group('cckt', function () {
        Route::group('room', function () {
            Route::post('create', '@createKTRoom');    /* 房间创建*/
        });
    });

    Route::post('autouri', '@autoUri'); // 小班课自动登录链接
    Route::get('ktrecord', '@getKTRecordUrl');        // 小班课回放链接
    Route::get('ktfullrecord', '@getKTFullRecordUrl');    // 小班课回放链接

})->prefix('\app\course\service\live\LiveBokeCC');

/* CC云直播回调 */
Route::group('cclive', function () {
    Route::post('room/entry', '@ccRoomEntryAuth');
    Route::get('start', '@ccLiveStart');
    Route::get('end', '@ccLiveEnd');
    Route::get('replay', '@ccReplayCallback');
    Route::get('ktlive', '@ccKTLive');
    Route::get('ktreplay', '@ccKTReplay');
})->prefix('\app\course\logic\live\LiveBoke')
    ->middleware(['withoutLogin'])
    ->setOption('is_api', 0);

